<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* fron 和 to 等价于 0% 和 100% */
        @keyframes move{
            from{
                transform: translate(0,0);
            }
            to{
                transform: translate(1000px,0);
            }
        }
        /* 动画序列 */

        div{
            width: 100px;
            height: 100px;
            background-color: pink;
            animation-name: move;
            animation-duration: 2s;
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>